﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
/// <summary>
/// Function 的摘要说明
/// </summary>
public class Function
{
	public Function()
	{
		//
		// TODO: 在此处添加构造函数逻辑
		//
	}
    public static string selUserNums() //返回注册会员数量
    {

        SqlConnection con = Class1.DBconnection();
        string sqlStr = "select * from Product";
        SqlDataAdapter da = new SqlDataAdapter(sqlStr, con);
        DataSet ds = new DataSet();
        da.Fill(ds, "Product");
        string num = ds.Tables["Product"].Rows.Count.ToString();
        da.Dispose();
        ds.Dispose();
        con.Close();
        return num;
    }
}
